#include "SoundThread.h"



SoundThread::SoundThread(void) : 
	OpenThreads::Thread(), _quitflagS(false)
{
}


SoundThread::~SoundThread(void) {}

void SoundThread::run()
{
	while (!_quitflagS) 
	{  
		Sound::PlayMusic();
	}
}

void SoundThread::reset()
{
	_quitmutexS.lock();
	_quitflagS = false;
	_quitmutexS.unlock();
}

void SoundThread::quit()
{
	_quitmutexS.lock();
	_quitflagS = true;
	_quitmutexS.unlock();
}